package com.ruoyi.service.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.service.mapper.ServiceCategoryitemsMapper;
import com.ruoyi.service.domain.ServiceCategoryitems;
import com.ruoyi.service.service.IServiceCategoryitemsService;

/**
 * 分类与项目对照表Service业务层处理
 * 
 * @author ZDL
 * @date 2024-10-21
 */
@Service
public class ServiceCategoryitemsServiceImpl implements IServiceCategoryitemsService 
{
    @Autowired
    private ServiceCategoryitemsMapper serviceCategoryitemsMapper;

    /**
     * 查询分类与项目对照表
     * 
     * @param categoryitemsId 分类与项目对照表主键
     * @return 分类与项目对照表
     */
    @Override
    public ServiceCategoryitems selectServiceCategoryitemsByCategoryitemsId(Long categoryitemsId)
    {
        return serviceCategoryitemsMapper.selectServiceCategoryitemsByCategoryitemsId(categoryitemsId);
    }

    /**
     * 查询分类与项目对照表列表
     * 
     * @param serviceCategoryitems 分类与项目对照表
     * @return 分类与项目对照表
     */
    @Override
    public List<ServiceCategoryitems> selectServiceCategoryitemsList(ServiceCategoryitems serviceCategoryitems)
    {
        return serviceCategoryitemsMapper.selectServiceCategoryitemsList(serviceCategoryitems);
    }

    /**
     * 新增分类与项目对照表
     * 
     * @param serviceCategoryitems 分类与项目对照表
     * @return 结果
     */
    @Override
    public int insertServiceCategoryitems(ServiceCategoryitems serviceCategoryitems)
    {
        return serviceCategoryitemsMapper.insertServiceCategoryitems(serviceCategoryitems);
    }

    /**
     * 修改分类与项目对照表
     * 
     * @param serviceCategoryitems 分类与项目对照表
     * @return 结果
     */
    @Override
    public int updateServiceCategoryitems(ServiceCategoryitems serviceCategoryitems)
    {
        return serviceCategoryitemsMapper.updateServiceCategoryitems(serviceCategoryitems);
    }

    /**
     * 批量删除分类与项目对照表
     * 
     * @param categoryitemsIds 需要删除的分类与项目对照表主键
     * @return 结果
     */
    @Override
    public int deleteServiceCategoryitemsByCategoryitemsIds(Long[] categoryitemsIds)
    {
        return serviceCategoryitemsMapper.deleteServiceCategoryitemsByCategoryitemsIds(categoryitemsIds);
    }

    /**
     * 删除分类与项目对照表信息
     * 
     * @param categoryitemsId 分类与项目对照表主键
     * @return 结果
     */
    @Override
    public int deleteServiceCategoryitemsByCategoryitemsId(Long categoryitemsId)
    {
        return serviceCategoryitemsMapper.deleteServiceCategoryitemsByCategoryitemsId(categoryitemsId);
    }
}
